Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NBytesImageSource Class / NBytesImageSource Constructor / NBytesImageSource Constructor(Byte[],Int32,Boolean)
A byte array containing image data that is encoded in one of the supported image formats. The passed byte array is assigned directly to the image source, it is not copied. Null is not accepted.
The index of the frame that this image source represents.
Specifies whether image frames should be animated.


In This Topic
    NBytesImageSource Constructor(Byte[],Int32,Boolean)
    In This Topic
    Creates a new image source from the specified byte array.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal data() As System.Byte, _
       ByVal frameIndex As System.Integer, _
       ByVal animateFrames As System.Boolean _
    )
    'Usage
     
    
    Dim data() As System.Byte
    Dim frameIndex As System.Integer
    Dim animateFrames As System.Boolean
     
    Dim instance As New NBytesImageSource(data, frameIndex, animateFrames)
    public NBytesImageSource( 
       System.byte[] data,
       System.int frameIndex,
       System.bool animateFrames
    )

    Parameters

    data
    A byte array containing image data that is encoded in one of the supported image formats. The passed byte array is assigned directly to the image source, it is not copied. Null is not accepted.
    frameIndex
    The index of the frame that this image source represents.
    animateFrames
    Specifies whether image frames should be animated.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also